home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Video
/
World of Video.iso
/
gfxprograms
/
3dprograms
/
rayshade-4.0
/
rayshade
/
smakefile
< prev
next >
Wrap
Makefile
|
1995-02-13
|
4KB
|
167 lines
#
# Makefile for rayshade.
#
# Craig Kolb
#
# SMakefile,v 4.1 1994/08/09 08:06:54 explorer Exp
#
# Bin directory
#
BINDIR = /usr/local
OPTIMIZE = OPTIMIZE
URTINC =
CCFLAGS = CPU=68040 NOSTKCHK MATH=68881 IGNORE=85+100+161+154+84+132 STRMERGE\
DATA=AUTO DEFINE=exit=myexit
URTLIB = LIB:rle.lib
CC = sc
MKDEP = /mkdep
YACC = bison -y
CLC =
LIBRAYDIR = /libray
LIBSHADEDIR = /libshade
INCLUDE = IDIR=$(LIBRAYDIR) IDIR=$(LIBRAYDIR)/libcommon\
IDIR=$(LIBRAYDIR)/libobj IDIR=$(LIBRAYDIR)/libsurf IDIR=$(LIBSHADEDIR)\
IDIR=/ $(URTINC)
YFLAGS = -d
LIBRAY = $(LIBRAYDIR)/libray.a
LIBSHADE = $(LIBSHADEDIR)/libshade.a
#
# If you are using LINDA, add -DLINDA
# If you are running 'tsnet'-style LINDA, add -DTSNET
# If you are running on a Multimax, add -DMULTIMAX -DSHAREDMEM
#
CFLAGS = $(CCFLAGS) $(INCLUDE) $(OPTIMIZE)
#
# C-Linda flags, if appropriate
#CLFLAGS = -linda ts 20000
#
.c.o:
$(CC) $(CFLAGS) $<
SHELL = /bin/sh
LIBS = /libshade/shade.lib /libray/ray.lib /libextra/extra.lib LIB:rle.lib\
LIB:unix.lib LIB:fl.lib LIB:scm881.lib LIB:sc.lib
LDFLAGS = SC SD ND NOICONS
DRIVE_C = main.c raytrace.c version.c # _main.c exit.c
DRIVE_H = raytrace.h
DRIVE_O = main.o raytrace.o version.o # _main.o exit.o
HFILES = $(DRIVE_H)
CFILES = $(DRIVE_C)
SHFILES = Makefile.SH
OBJ = $(DRIVE_O)
DEPENDSRC = $(DRIVE_C)
#
# Change $(CC) below to $(CLC) if using Linda.
#
rayshade: $(OBJ) # $(LIBS)
slink FROM LIB:c.o main.o raytrace.o version.o TO rayshade $(LDFLAGS)\
LIB $(LIBS)
#
# Uncomment the following rule if using Linda.
#
#raytrace.lo: raytrace.cl
# $(CLC) $(INCLUDE) $(LCFLAGS) -c raytrace.cl
#
# End of configuration section
#
install: rayshade
mv rayshade $(BINDIR)/rayshade
clean:
delete \#?.o quiet
realclean:
delete \#?.o y.tab.h
delete \#?.orig Makefile QUIET
lint:
lint $(CFLAGS) -x $(CFILES) -lm
tags:
ctags -t $(CFILES)
# DO NOT DELETE THIS LINE
main.o: main.c
main.o: /config.h
#main.o: /include/rle.h
#main.o: /include/rle_code.h
#main.o: /include/rle_raw.h
main.o: /libray/libcommon/color.h
main.o: /libray/libcommon/common.h
main.o: /libray/libcommon/error.h
main.o: /libray/libcommon/expr.h
main.o: /libray/libcommon/ray.h
main.o: /libray/libcommon/transform.h
main.o: /libray/libcommon/vector.h
main.o: /libray/libobj/bounds.h
main.o: /libray/libobj/geom.h
main.o: /libshade/funcdefs.h
main.o: /libshade/options.h
main.o: /libshade/picture.h
main.o: /libshade/rayshade.h
main.o: /libshade/stats.h
main.o: /libshade/viewing.h
raytrace.o: raytrace.c
raytrace.o: /config.h
#raytrace.o: /include/rle.h
#raytrace.o: /include/rle_code.h
#raytrace.o: /include/rle_raw.h
raytrace.o: /libray/libcommon/color.h
raytrace.o: /libray/libcommon/common.h
raytrace.o: /libray/libcommon/error.h
raytrace.o: /libray/libcommon/expr.h
raytrace.o: /libray/libcommon/ray.h
raytrace.o: /libray/libcommon/sampling.h
raytrace.o: /libray/libcommon/transform.h
raytrace.o: /libray/libcommon/vector.h
raytrace.o: /libray/libobj/bounds.h
raytrace.o: /libray/libobj/geom.h
raytrace.o: /libray/libsurf/atmosphere.h
raytrace.o: /libray/libsurf/surface.h
raytrace.o: /libshade/funcdefs.h
raytrace.o: /libshade/options.h
raytrace.o: /libshade/picture.h
raytrace.o: /libshade/rayshade.h
raytrace.o: /libshade/stats.h
raytrace.o: /libshade/viewing.h
raytrace.o: raytrace.h
version.o: version.c
version.o: /config.h
version.o: /libray/libcommon/color.h
version.o: /libray/libcommon/common.h
version.o: /libray/libcommon/error.h
version.o: /libray/libcommon/expr.h
version.o: /libray/libcommon/ray.h
version.o: /libray/libcommon/transform.h
version.o: /libray/libcommon/vector.h
version.o: /libray/libobj/bounds.h
version.o: /libray/libobj/geom.h
version.o: /libshade/funcdefs.h
version.o: /libshade/rayshade.h
version.o: /libshade/stats.h
version.o: /patchlevel.h
_main.o: _main.c
gcc -O -fstrength-reduce -finline-functions -c _main.c
exit.o: exit.c
gcc -O -fstrength-reduce -finline-functions -c exit.c